/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.member.entity;

import com.jeeplus.modules.member.entity.Member;
import java.util.Date;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 用户表Entity
 * @author zhych
 * @version 2021-08-24
 */
@Data
public class Member extends DataEntity<Member> {
	
	private static final long serialVersionUID = 1L;
	@ExcelField(title="昵称", align=2, sort=1)
	private String nickname;		// 昵称
	@ExcelField(title="姓名", align=2, sort=2)
	private String username;		// 姓名
	@ExcelField(title="性别", dictType="sex", align=2, sort=3)
	private String gender;		// 性别
	@ExcelField(title="头像", align=2, sort=4)
	private String photo;		// 头像
	@ExcelField(title="手机号", align=2, sort=5)
	private String mobile;		// 手机号
	@ExcelField(title="密码", align=2, sort=6)
	private String password;		// 密码
	@ExcelField(title="openid", align=2, sort=7)
	private String openid;		// openid
	@ExcelField(title="推荐人", fieldType=Member.class, value="invite.nickname", align=2, sort=8)
	private Member invite;		// 推荐人
	@ExcelField(title="邀请码", align=2, sort=9)
	private String inviteCode;		// 邀请码
	@ExcelField(title="小程序码", align=2, sort=10)
	private String inviteUrl;		// 小程序码
	@ExcelField(title="抽成比例", align=2, sort=11)
	private String radio;		// 抽成比例
	@ExcelField(title="总收益", align=2, sort=12)
	private String earning;		// 总收益
	@ExcelField(title="账户余额", align=2, sort=13)
	private String balance;		// 账户余额
	@ExcelField(title="用户类型", dictType="user_type", align=2, sort=14)
	private String userType;		// 用户类型
	private Date beginCreateDate;		// 开始 创建时间
	private Date endCreateDate;		// 结束 创建时间
	
	public Member() {
		super();
	}
	
	public Member(String id){
		super(id);
	}
}